package com.tiger.cloud.model.crm;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.tiger.cloud.common.mybatis.TigerBaseEntity;
import com.tiger.cloud.enums.DeleteEnum;
import com.tiger.cloud.enums.LoanRecordType;
/**
 * 
 * crm_loan_record-合作记录/借款记录
 *
 */
public class LoanRecord extends TigerBaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 交易类型   1:借款记录、2:合作记录
	 */
    private String type;
	/**
	 * 所属用户
	 */
    private Long userId;
	/**
	 * 客户ID
	 */
    private Long customerId;
	/**
	 * 借款开始日期
	 */
    private Date startDate;
	/**
	 * 借款金额
	 */
    private BigDecimal amount;
	/**
	 * 借款期限
	 */
    private Integer loanPeriod;
	/**
	 * 借款类型 1:车辆抵押、2:无抵押、3:零用贷、4:垫资空放、5:不动产抵押、6:其他抵押
	 */
    private LoanRecordType loanType;
	/**
	 * 还款情况
	 */
    private String status;
	/**
	 * 如何结清
	 */
    private String howEnd;
	/**
	 * 
	 */
    private Date createTime;
	/**
	 * 是否删除, 0:正常,1:删除
	 */
    private DeleteEnum isDelete;
	/**
	 * 
	 */
    private Date lastUpdateTime;
    
    public LoanRecord(){
    
    }
    
    public String getType() {
        return this.type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getCustomerId() {
        return this.customerId;
    }
    
    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }
    public Date getStartDate() {
        return this.startDate;
    }
    
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    public BigDecimal getAmount() {
        return this.amount;
    }
    
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public Integer getLoanPeriod() {
        return this.loanPeriod;
    }
    
    public void setLoanPeriod(Integer loanPeriod) {
        this.loanPeriod = loanPeriod;
    }
    public LoanRecordType getLoanType() {
        return this.loanType;
    }
    
    public void setLoanType(LoanRecordType loanType) {
        this.loanType = loanType;
    }
    public String getStatus() {
        return this.status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    public String getHowEnd() {
        return this.howEnd;
    }
    
    public void setHowEnd(String howEnd) {
        this.howEnd = howEnd;
    }
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public DeleteEnum getIsDelete() {
        return this.isDelete;
    }
    
    public void setIsDelete(DeleteEnum isDelete) {
        this.isDelete = isDelete;
    }
    public Date getLastUpdateTime() {
        return this.lastUpdateTime;
    }
    
    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
    
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}